package com.kitty.web.domain;


import com.kitty.web.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 定时任务对象 spring_scheduled_cron
 * 
 * @author soul
 * @date 2022-03-13
 */
public class SpringScheduledCronDTO extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long cronId;

    private String taskExplain;

    /** 定时任务完整类名 */
    private String cronKey;

    /** cron表达式 */
    private String cronExpression;


    private Integer status;


    private Date cronStrat;


    private Date cronEnd;


    private String cronInte;


    private String cronInteDw;


    private String cronCy;

    public void setCronId(Long cronId) 
    {
        this.cronId = cronId;
    }

    public Long getCronId() 
    {
        return cronId;
    }
    public void setTaskExplain(String taskExplain) 
    {
        this.taskExplain = taskExplain;
    }

    public String getTaskExplain() 
    {
        return taskExplain;
    }
    public void setCronKey(String cronKey) 
    {
        this.cronKey = cronKey;
    }

    public String getCronKey() 
    {
        return cronKey;
    }
    public void setCronExpression(String cronExpression) 
    {
        this.cronExpression = cronExpression;
    }

    public String getCronExpression() 
    {
        return cronExpression;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCronStrat() {
        return cronStrat;
    }

    public void setCronStrat(Date cronStrat) {
        this.cronStrat = cronStrat;
    }

    public Date getCronEnd() {
        return cronEnd;
    }

    public void setCronEnd(Date cronEnd) {
        this.cronEnd = cronEnd;
    }


    public String getCronInte() {
        return cronInte;
    }

    public void setCronInte(String cronInte) {
        this.cronInte = cronInte;
    }

    public void setCronInteDw(String cronInteDw)
    {
        this.cronInteDw = cronInteDw;
    }

    public String getCronInteDw() 
    {
        return cronInteDw;
    }
    public void setCronCy(String cronCy) 
    {
        this.cronCy = cronCy;
    }

    public String getCronCy() 
    {
        return cronCy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("cronId", getCronId())
            .append("taskExplain", getTaskExplain())
            .append("cronKey", getCronKey())
            .append("cronExpression", getCronExpression())
            .append("status", getStatus())
            .append("cronStrat", getCronStrat())
            .append("cronEnd", getCronEnd())
            .append("cronInte", getCronInte())
            .append("cronInteDw", getCronInteDw())
            .append("cronCy", getCronCy())
            .toString();
    }
}
